export default {
    saveUser (user) {
        localStorage.setItem('username', JSON.stringify(user))
    },

    getUser () {
        return JSON.parse(localStorage.getItem('username') || '{}')
    },

    removeUser (user) {
        localStorage.removeItem('username')
    },
}